package com.vigmonk.utils 
{
	import flash.utils.ByteArray;	
	import flash.display.Sprite;
	
	/**
	 * @author VIGMONK
	 */
	public class DeepCopy extends Sprite 
	{

		public function DeepCopy(){}
		
		public static function clone(_obj:*) : Object
        {
            var clone:ByteArray = new ByteArray();
            clone.writeObject( _obj );
            clone.position = 0;

            return clone.readObject();
        }
	}
}
